package com.link2room.optimus.dto.result.base;

import com.link2room.common.annotation.L2RDatetimeString;
import com.link2room.common.dto.result.base.BaseDto;
import com.link2room.common.util.DateUtil;

import java.util.Date;

/**
 * Created by sss on 2016/9/1.
 */

public class MarketingStockDto extends BaseDto {

    public MarketingStockDto(){

    }
    public MarketingStockDto(String lhotelGroupCode, String lhotelCode, String mcdCode, String rmtype, String rsvDateStr, Integer weekd, Integer setNum, String isClosed){
        setLhotelGroupCode(lhotelGroupCode);
        setLhotelCode(lhotelCode);
        setMcdCode(mcdCode);
        setRmtype(rmtype);
        setRsvDateStr(rsvDateStr);
        setWeekd(weekd);
        setSetNum(setNum);
        setIsClosed(isClosed);
    }
    /**
     * 活动代码
     */
    private String mcdCode;
    /**
     * 房型代码
     */
    private String rmtype;
    /**
     * 可售量
     */
    private Integer setNum;
    /**
     * 是否关房
     */
    private String isClosed;
    /**
     * 日期
     */
    private Date rsvDate;
    @L2RDatetimeString(source = "rsvDate")
    private String rsvDateStr;
    /**
     * 星期
     */
    private Integer weekd;



    public String getMcdCode() {
        return mcdCode;
    }

    public void setMcdCode(String mcdCode) {
        this.mcdCode = mcdCode;
    }

    public String getRmtype() {
        return rmtype;
    }

    public void setRmtype(String rmtype) {
        this.rmtype = rmtype;
    }

    public Integer getSetNum() {
        return setNum;
    }

    public void setSetNum(Integer setNum) {
        this.setNum = setNum;
    }

    public String getIsClosed() {
        return isClosed;
    }

    public void setIsClosed(String isClosed) {
        this.isClosed = isClosed;
    }

    public Date getRsvDate() {
        return rsvDate;
    }

    public void setRsvDate(Date rsvDate) {
        this.rsvDate = rsvDate;
    }

    public Integer getWeekd() {
        return weekd;
    }

    public void setWeekd(Integer weekd) {
        this.weekd = weekd;
    }

    public String getRsvDateStr() {
        return rsvDateStr;
    }

    public void setRsvDateStr(String rsvDateStr) {
        this.rsvDateStr = rsvDateStr;
        setRsvDate(DateUtil.parseDateWevFormat(rsvDateStr));
    }
}
